package com.woniuxy.amusementparkos.entity.lsy;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @author Muzi
*
* 2020年5月8日下午4:12:22
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WristStarp implements Serializable{
	private static final long serialVersionUID = 1L;
	private String wriststrp_id;//腕带印刷号
	private Integer type_id;//类型编号
	private Integer state;//状态
	private String serial_numbers;//序列号
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WristStarp other = (WristStarp) obj;
		if (serial_numbers == null) {
			if (other.serial_numbers != null)
				return false;
		} else if (!serial_numbers.equals(other.serial_numbers))
			return false;
		if (state == null) {
			if (other.state != null)
				return false;
		} else if (!state.equals(other.state))
			return false;
		if (type_id == null) {
			if (other.type_id != null)
				return false;
		} else if (!type_id.equals(other.type_id))
			return false;
		if (wriststrp_id == null) {
			if (other.wriststrp_id != null)
				return false;
		} else if (!wriststrp_id.equals(other.wriststrp_id))
			return false;
		return true;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((serial_numbers == null) ? 0 : serial_numbers.hashCode());
		result = prime * result + ((state == null) ? 0 : state.hashCode());
		result = prime * result + ((type_id == null) ? 0 : type_id.hashCode());
		result = prime * result + ((wriststrp_id == null) ? 0 : wriststrp_id.hashCode());
		return result;
	}
	
	
}
